const USER_INFO = 'EMPLOYEE_USERINFO'
// 存入用户信息
export const setUserInfo = (token) => {
  localStorage.setItem(USER_INFO, JSON.stringify(token))
}

// 获取用户信息
export const getUserInfo = () => {
  const defaultObj = ''
  const result = localStorage.getItem(USER_INFO)
  return result ? JSON.parse(result) : defaultObj
}

// 移除用户信息
export const removeUserInfo = () => {
  localStorage.removeItem(USER_INFO)
}
